<template>
	<view class="bottombar">
		<view class="l">
			<view>
				<view class="img1"></view>
				<text>客服</text>
			</view>
			<view class="">
				<view class="img2"></view>
				<text>店铺</text>
			</view>
			<view class="">
				<view class="img3"></view>
				<text>收藏</text>
			</view>
		</view>
		<view class="r">
			<view class="addshoppingcart" v-on:click="addShopping">加入购物车</view>
			<view class="buy">购买</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			addShopping(){
				this.$emit('addShopping')
			}
		}
	}
</script>

<style scoped>
.bottombar{
    position: fixed;
    z-index: 20;
    right: 0;
    left: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    height: 7vh;
}
.l{
    padding-top: 18rpx;
    width: 50%;
    display: flex;
    justify-content: space-around;
    background: #f2f5f8;
    text-align: center;
    color: #000000;
    font-size: 24rpx;
}
.img1,.img2,.img3{
    width: 40rpx;
    height: 40rpx;
}
.l .img1{
    background:no-repeat url("../../../static/img/detail/detail_bottom.png")  center -96rpx;
    background-size:cover;
}
.l .img2{
    background:no-repeat url("../../../static/img/detail/detail_bottom.png") center -180rpx;
    background-size:cover;
}
.l .img3{
    background:no-repeat url("../../../static/img/detail/detail_bottom.png") center 0rpx;
    background-size:cover;
}
.r{
    display: flex;
    width: 50%;
    justify-content: space-around;
}
.addshoppingcart{
    background-color: yellow;
}
.addshoppingcart,.buy{
    width: 50%;
    text-align: center;
    line-height: 7vh;
    height: 7vh;
    font-size: 36rpx;
    color: #000000;
}
.buy{
    background-color: pink;
    color: #ffffff;
}
</style>
